<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="layout.css">
</head>
<body>
<div class="test">
  <input type="button" value="弹出对话框" autofocus>
</div>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="main.js"></script>
<script>
$(function() {
  var $btnTest = $('div.test>input[type="button"]');

  $btnTest.click(function() {
    $dlgSearch.show(function(content) {
      console.log("click!");
      console.log(content.content);
    });
  });
});
</script>
</body>
</html>
